package cn.itcast.dao;


import cn.itcast.pojo.HotSetmeals;
import cn.itcast.vo.FindSetmealVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.Date;
import java.util.List;

public interface ReportDao {

    /**
     * 每月收入统计
     *
     * @param mouths the mouths
     * @return the double
     */
    Double selectIncome(String mouths);

    /**
     * 预约/支付统计
     *
     * @param mouth the mouth
     * @return the integer
     */
    Integer selectOrder(String mouth);

    /**
     * //今日新增会员数
     */
    Integer selectTodayNewMember(String today);

    /**
     * 总会员数
     */
    Integer selectTotalMember();

    /**
     * 本周新增会员数
     */
    //Integer selectThisWeekNewMember(@Param() String thisWeekMonday, String sundayOfThisWeek);
    //List<Integer>  selectThisWeekNewMember(String sundayOfThisWeek);
    Integer selectThisWeekAndMonthNewMember(@Param("min") String thisWeekMonday, @Param("max") String sundayOfThisWeek);

    /**
     * 今日预约数
     *
     * @return
     */
    Integer selectTodayOrderNumber(String today);

    /**
     * 今日到诊数
     *
     * @param today
     */
    Integer selectTodayVisitsNumber(String today);

    //本周月预约数
    Integer selectThisWeekAndMonthOrderNumber(@Param("min") String thisWeekMonday, @Param("max") String sundayOfThisWeek);

    //本周月到诊数
    Integer selectThisWeekAndMonthVisitsNumber(@Param("min") String thisWeekMonday, @Param("max") String sundayOfThisWeek);

    //设置热门套餐
    List<HotSetmeals> selectSelmeat();

    Integer selectCount(String mouth);


    List<FindSetmealVo> findsetmeals();
}
